<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
a:link {
	color: #FFF;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
</head>
<style>
.aw{
	color:#7ad1ac;}
</style>
<body>
<title>天宝绿色食品网</title>
<style type="text/css">
.biaoti {
	font-family: "黑体";
	font-size: 20px;
	text-align:left;
}
.banquan {
	font-family: "宋体";
	font-size: 16px;
	background-color: #E8F7CF;
	color: #090;
	background-image:url(img/jie.jpg);
	font-weight: bold;
}
</style>
<link rel="stylesheet" type="text/css">
</head>

<body>
<link href="style/logo.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="container">
<!--导航栏-->
<link href="style/aa.css" rel="stylesheet" type="text/css" />
  <ul class="menu">
    <li><a href="denglu.php" style="color:#FFF">会员登录</a></li>
    <li><a href="zhuce.php" style="color:#FFF">免费注册</a></li>
    <li><img src="img/1.jpg" width="180" height="19px" /></li>
    <li><a href="food.php" style="color:#FFF">首页</a></li>
    <li class="has-submenu">推荐食品
      <ul>
        <li><a href="video.php?style=水果" style="color:#fff">新鲜水果</a></li>
        <li><a href="video.php?style=蔬菜" style="color:#FFF">营养蔬菜</a></li>
      </ul>
    </li>
   <li><a href="zixun.php" style="color:#FFF">食品咨询</a></li>
    <li><a href="liuyan.php" style="color:#FFF">留言反馈</a></li>
	<li><a style="color:#FFF">关于我们</a></li>
  </ul>
</div>
<div>


</div>
<!--logo和搜索框-->
<link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<div class="logo_bg">
<div class="div3"><img src="LOGO/logo.png" width="200px" height="90px" class="img"/></div>
<div id="container">
   
</div>
</div>
<table width="1000" border="0" height="50">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<!--正文-->
<?php
include("conn/conn.php");
$key=$_POST[tb_key];
	$sql="select *from tb_video where name like '%".$key."%'";
	$result_v=mysqli_query($link,$sql);
	if(mysqli_num_rows($result_v)){
			$num=1;
			?>
			<table width="1000" align="center">
            <?php
			while($row_v=mysqli_fetch_assoc($result_v)){
			if (($num %3)==0){
				echo "<tr>";
				}
			?>
			  <tr>
    <td colspan="2" class="title"></td>
  </tr>
  <tr>
    <td width="366" height="400" rowspan="6" align="left">
    <img src="upfiles/video/<?=$row_v[picture]?>" width="356" height="400"/></td>
    <td width="574" height="44" align="left" class="biaoti"><?=$row_v[remark]?></td>
  </tr>
  <tr>
    <td height="57" align="left" style="text-align:left"><a style="color: #000; font-weight: bold;"><strong>价格</a><a style="color:#F90">¥:
    <?=$row_v[price]?>
    <strong>元</strong>[包邮]</a></td>
  </tr>
  <tr>
    <td height="30" style="text-align:left">发货地址:<?=$row_v[froms]?></td>
  </tr>
  <tr>
    <td style="text-align:left">详细介绍</td>
    <td width="60">&nbsp;</td>
  </tr>
  <tr>
    <td height="47" style="text-align:left"><a style="font-size:16px;"><?=$row_v[intro]?></a></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
 
</table>
            <?php
			if(($num %3)==2){
				echo "</tr>";
			}
		}?>
		</table>
 <?php
}
else{
	echo "没有";
	}
?>
<div>
<table width="1000" border="0" height="50">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</div>
<!--结尾-->


</table>
<table width="100%" border="0" height="200">
  <tr>
    <td align="center" class="banquan"><p>公司名称：天宝绿色食品公司 电话：15565478543 传真：025-12345678 邮</p>
      <p>&nbsp;</p>
      <p>编：426100 版权归天宝绿色食品公司所有 粤ICP备 0703332572号</p></td>
  </tr>
</table>

</body>
</html>